/*
 * XML Type:  StateInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.StateInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML StateInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class StateInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.StateInfo
{
    
    public StateInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName STATECODE$0 = 
        new javax.xml.namespace.QName("", "STATECODE");
    private static final javax.xml.namespace.QName EMPLOYERSTID$2 = 
        new javax.xml.namespace.QName("", "EMPLOYERSTID");
    private static final javax.xml.namespace.QName STATEWAGES$4 = 
        new javax.xml.namespace.QName("", "STATEWAGES");
    private static final javax.xml.namespace.QName STATETAXWH$6 = 
        new javax.xml.namespace.QName("", "STATETAXWH");
    
    
    /**
     * Gets the "STATECODE" element
     */
    public java.lang.String getSTATECODE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATECODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "STATECODE" element
     */
    public net.ofx.types.x2003.x04.StateCodeType xgetSTATECODE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StateCodeType target = null;
            target = (net.ofx.types.x2003.x04.StateCodeType)get_store().find_element_user(STATECODE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "STATECODE" element
     */
    public void setSTATECODE(java.lang.String statecode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATECODE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATECODE$0);
            }
            target.setStringValue(statecode);
        }
    }
    
    /**
     * Sets (as xml) the "STATECODE" element
     */
    public void xsetSTATECODE(net.ofx.types.x2003.x04.StateCodeType statecode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StateCodeType target = null;
            target = (net.ofx.types.x2003.x04.StateCodeType)get_store().find_element_user(STATECODE$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.StateCodeType)get_store().add_element_user(STATECODE$0);
            }
            target.set(statecode);
        }
    }
    
    /**
     * Gets the "EMPLOYERSTID" element
     */
    public java.lang.String getEMPLOYERSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EMPLOYERSTID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "EMPLOYERSTID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetEMPLOYERSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(EMPLOYERSTID$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "EMPLOYERSTID" element
     */
    public boolean isSetEMPLOYERSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EMPLOYERSTID$2) != 0;
        }
    }
    
    /**
     * Sets the "EMPLOYERSTID" element
     */
    public void setEMPLOYERSTID(java.lang.String employerstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EMPLOYERSTID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EMPLOYERSTID$2);
            }
            target.setStringValue(employerstid);
        }
    }
    
    /**
     * Sets (as xml) the "EMPLOYERSTID" element
     */
    public void xsetEMPLOYERSTID(net.ofx.types.x2003.x04.IdType employerstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(EMPLOYERSTID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(EMPLOYERSTID$2);
            }
            target.set(employerstid);
        }
    }
    
    /**
     * Unsets the "EMPLOYERSTID" element
     */
    public void unsetEMPLOYERSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EMPLOYERSTID$2, 0);
        }
    }
    
    /**
     * Gets the "STATEWAGES" element
     */
    public java.lang.String getSTATEWAGES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATEWAGES$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "STATEWAGES" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetSTATEWAGES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(STATEWAGES$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "STATEWAGES" element
     */
    public boolean isSetSTATEWAGES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STATEWAGES$4) != 0;
        }
    }
    
    /**
     * Sets the "STATEWAGES" element
     */
    public void setSTATEWAGES(java.lang.String statewages)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATEWAGES$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATEWAGES$4);
            }
            target.setStringValue(statewages);
        }
    }
    
    /**
     * Sets (as xml) the "STATEWAGES" element
     */
    public void xsetSTATEWAGES(net.ofx.types.x2003.x04.AmountType statewages)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(STATEWAGES$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(STATEWAGES$4);
            }
            target.set(statewages);
        }
    }
    
    /**
     * Unsets the "STATEWAGES" element
     */
    public void unsetSTATEWAGES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STATEWAGES$4, 0);
        }
    }
    
    /**
     * Gets the "STATETAXWH" element
     */
    public java.lang.String getSTATETAXWH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATETAXWH$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "STATETAXWH" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetSTATETAXWH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(STATETAXWH$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "STATETAXWH" element
     */
    public boolean isSetSTATETAXWH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STATETAXWH$6) != 0;
        }
    }
    
    /**
     * Sets the "STATETAXWH" element
     */
    public void setSTATETAXWH(java.lang.String statetaxwh)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATETAXWH$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATETAXWH$6);
            }
            target.setStringValue(statetaxwh);
        }
    }
    
    /**
     * Sets (as xml) the "STATETAXWH" element
     */
    public void xsetSTATETAXWH(net.ofx.types.x2003.x04.AmountType statetaxwh)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(STATETAXWH$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(STATETAXWH$6);
            }
            target.set(statetaxwh);
        }
    }
    
    /**
     * Unsets the "STATETAXWH" element
     */
    public void unsetSTATETAXWH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STATETAXWH$6, 0);
        }
    }
}
